home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / smaltalk.lha / smalltalk-1.1.1 / stix / Arc.st next >
Text File  |  1991-09-12  |  2KB  |  79 lines

  1. "======================================================================
  2. |
  3. | Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  4. | Written by Steve Byrne.
  5. |
  6. | This file is part of GNU Smalltalk.
  7. |
  8. | GNU Smalltalk is free software; you can redistribute it and/or modify it
  9. | under the terms of the GNU General Public License as published by the Free
  10. | Software Foundation; either version 1, or (at your option) any later version.
  11. | GNU Smalltalk is distributed in the hope that it will be useful, but WITHOUT
  12. | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  13. | FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  14. | details.
  15. | You should have received a copy of the GNU General Public License along with
  16. | GNU Smalltalk; see the file COPYING.  If not, write to the Free Software
  17. | Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  
  18. |
  19.  ======================================================================"
  20.  
  21.  
  22. "
  23. |     Change Log
  24. | ============================================================================
  25. | Author       Date       Change 
  26. | sbyrne     24 May 90      created.
  27. |
  28. "
  29.  
  30. Object subclass: #Arc
  31.        instanceVariableNames: 'origin size angles'
  32.        classVariableNames: ''
  33.        poolDictionaries: ''
  34.        category: 'X hacking'
  35. !
  36.  
  37. !Arc class methodsFor: 'instance creation'!
  38.  
  39. new: originPoint size: sizePoint angles: anglesPoint
  40.     ^self new origin: originPoint size: sizePoint angles: anglesPoint
  41. !!
  42.  
  43.  
  44. !Arc methodsFor: 'accessing'!
  45.  
  46. origin
  47.     ^origin
  48. !
  49.  
  50. size
  51.     ^size
  52. !
  53.  
  54. angles
  55.     ^angles
  56. !!
  57.  
  58.  
  59. !Arc methodsFor: 'writing'!
  60.  
  61. emitTo: aPacket
  62.     aPacket point: origin.
  63.     aPacket point: size.
  64.     aPacket point: angles
  65. !!
  66.  
  67.  
  68. !Arc methodsFor: 'private'!
  69.  
  70. origin: originPoint size: sizePoint angles: anglesPoint
  71.     origin _ originPoint.
  72.     size _ sizePoint.
  73.     angles _ anglesPoint
  74. !!
  75.      
  76.  
  77.